package com.hbue.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbue.springboot.pojo.TbOrder;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TbOrderMapper extends BaseMapper<TbOrder> {

    @Select("select order_id from tb_order where is_over = 0 and order_id = id")
    List<Integer> getOrderWithoutFinish(Integer id);
}
